 /*
  *Copyright (c) 2003, 2018, UMF and/or its affiliates. All rights reserved.
  *
  */
 package com.leeler.feign;

 import feign.hystrix.FallbackFactory;
 import org.springframework.stereotype.Component;

 /**
  * @program: demo
  * @description: TODO
  * @author: lile
  * @create: 2019-08-21 18:25
  **/
 @Component
 public class AccountServerFeignCliengHytrix implements FallbackFactory<AccontServerFeignClient> {
     @Override
     public AccontServerFeignClient create(Throwable throwable) {
         return new AccountServerFeignClientWithFactory() {
             @Override
             public String queryUserAccount(String uerId) {
                 return null;
             }
         };
     }
 }
